An Object-Oriented Testing Framework Specified in Z Notation

نویسنده

  • Ming-Chi Lee
چکیده

Many researches to testing object-oriented programs (OOPs) have been proposed for the past decade. However, most of these researches have centered only around the class-level testing instead of the whole profiles of OOP development. This paper presents a framework to test OOPs from em formal specification to em test data generation. The formal specification of object-oriented program is specified in Z notation which is a mathematically rigorous specification language. A state transition diagram (STD) derived from Z specification provides a complementary representation of the dynamic behavior of a given OOP. In addition, the STD can be used to generate a test data which consists of anticipated operation sequences of OOPs. Moreover, a testing algorithm modeled by em finite state machine is proposed to run against test data. Two important testing criteria, consistency and completeness (C & C), are used to evaluate testing result. The final test result shows that the testing framework is executable and pragmatic.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Z Formal Framework for Syntax-Based Module Level Software Metrics

This paper introduces a framework to formalize module-level structural metrics that quantify inter-module dependencies in object-oriented software systems. We used a formal framework based on the Big Bang Graph (BBG) modelling and the formal Z specification language to formalize a modularization-based software metric as an example to demonstrate how the framework works. We have developed the De...

متن کامل

Exclusive Control within Object Oriented Systems

In object-oriented systems, object associations generally result in a complex structure whose precise description is a crucial part of the sys-tem's formal speciication. A particularly common object association arises when one object exclusively controls (owns) another. As exclusive object control is an important aspect of safety and security critical systems, speciic notation to capture direct...

متن کامل

Formal Object-oriented User-interface Design Formal Object-oriented User-interface Design

A notation is presented for formally describing the design of a user-interface. The speciication of a system is given using the Object-Z formal speciication language and then extended to describe presentation using an Object-Z class library. The Object-Z notation is extended to enable designs to be described using UAN (User Action Notation) annotations and the semantics for the design extension...

متن کامل

An object-oriented testing approach based om a rigorous model of claimed functionality

An object-oriented testing approach based on a rigorous model of claimed functionality. A uthor : Noel M O' Connor Testing aims to enhance the quality of the software under test. This is achieved through finding and removing errors which, if they were present, would detract from the operational efficiency or accuracy of the product and therefore detract from the product's quality. Black box tes...

متن کامل

A formal framework for modelling and analysing mobile systems

This paper presents a formal framework for modelling and analysing mobile systems. The framework comprises a collection of models of the dominant design paradigms which are readily extended to incorporate details of particular technologies, i.e., programming languages and their run-time support, and applications. The modelling language is Object-Z, an extension of the well-known Z specification...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004